<html>
<head>
<link rel="stylesheet" href="styles_new.css" type="text/css">
</head>
<body>
<br><br>
<?
include_once(LIBS_DIR.'System/System.class.php');
include_once($GLOBALS[baseDIR].'login/domain/log_setup.php');

$log = new systemLog($GLOBALS['master_db'], 'comments_resellers', 'id', $log_setup);

$info['table_primary_key'] = $dns_dom_id;

$res = $log->get($info);

if($res){
	echo "<br><table class=bTable cellpadding=0 cellspacing=0 align=center>
		<tr>
			<th>Date</th>
			<th>Action</th>
		</tr>
	";

	foreach($res as $k => $v){
		$dt = strtotime(substr($v['date'], 0, 19));
		$dtt = mktime(date('H', $dt) - 2, date('i', $dt), date('s', $dt), date('m', $dt),   date('d', $dt),   date('Y', $dt));
		$dttt = date("F d, Y, H:i:s", $dtt).' GMT';
		if($v[comment] == 'Enabled'){
			$v[comment] = "<b><font color=green>Enabled</font></b>";
		}elseif($v[comment] == 'Disabled'){
			$v[comment] = "<b><font color=red>Disabled</font></b>";
		}

		echo "<tr>
			<td>".$dttt."</td>
			<td>$v[comment]</td>
		</tr>";
	}

	echo "</table>";
}else{
	echo "<p><center>".translate('no_activation_log')."</center></p>";
}
?>

<br><br>
</body>
</html>